import {useAxios} from '@/hooks/web/useAxios'
import {queryEq} from './types'

const request = useAxios()

//获取设备列表
export const listEq = (params?: queryEq) => {
    return request.get({
        url: '/system/equipment/list',
        params
    })
}

//分配设备
export const adEq = (data) => {
    return request.post({
        url: '/system/equipment/distribution',
        data
    })
}

// 获取体温传感器没正常使用的患者
export const getUsage = () => {
    return request.get({
        url: '/system/patient/getUsage',
    })
}
